﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LoU.Client.Service;

namespace Lou.Client.Service.Authentication
{
    public class World
    {
        public string Label { get; set; }
        public string Url { get; set; }
        public Guid WorldId { get; set; }

        private string _baseServiceUrl;
        public string BaseServiceUrl
        {
            get
            {
                return this._baseServiceUrl ?? (this._baseServiceUrl = this.Url.Substring(0, this.Url.LastIndexOf(Constants.DEFAULT_PAGE)) + Constants.APPEND_URL);
            }
        }
    }
}
